import java.util.*;
import java.io.Serializable;

public class Product implements Serializable {
	private int pid, qty;
	private String name;
	private Double price;

 	public Product(int pid, String name, Double price, int qty){
		this.pid = pid;
		this.name = name;
		this.price = price;
		this.qty = qty;
	}
	
	public int getPid(){
		return pid;
	}
	
	public void setPid(int pid){
		this.pid = pid;
	}
	
	public String getName(){
		return name;
	}
	
	public void setName(String name){
		this.name = name;
	}
	
	public Double getPrice(){
		return price;
	}
	
	public void setPrice(Double price){
		this.price = price;
	}
	
	public int getQty(){
		return qty;
	}
	
	public void setQty(int qty){
		this.qty = qty;
	}

	public String toString(){
		return "ProductID="+pid+",ProductName="+name+",ProductPrice="+String.valueOf(price)+",QtyOrdered="+qty;
	}

}